package com.siyu.preplan.planpdocument.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.siyu.preplan.planpdocument.mapper.PlanPDocumentMapper;
import com.siyu.preplan.planpdocument.domain.PlanPDocument;
import com.siyu.preplan.planpdocument.service.IPlanPDocumentService;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.siyu.preplan.planpdocument.mapper.PlanPDocumentMapper;
import com.siyu.preplan.planpdocument.domain.PlanPDocument;
import com.siyu.preplan.planpdocument.service.IPlanPDocumentService;

/**
 * 预案文档信息Service业务层处理
 *
 * @author hrhy
 * @date 2024-06-15
 */
@Service
public class PlanPDocumentServiceImpl extends ServiceImpl<PlanPDocumentMapper, PlanPDocument> implements IPlanPDocumentService
{
    @Autowired
    private PlanPDocumentMapper planPDocumentMapper;

    /**
     * 查询预案文档信息
     *
     * @param id 预案文档信息主键
     * @return 预案文档信息
     */
    @Override
    public PlanPDocument selectPlanPDocumentById(String id)
    {
        return planPDocumentMapper.selectPlanPDocumentById(id);
    }

    /**
     * 查询预案文档信息列表
     *
     * @param planPDocument 预案文档信息
     * @return 预案文档信息
     */
    @Override
    public List<PlanPDocument> selectPlanPDocumentList(PlanPDocument planPDocument)
    {
        return planPDocumentMapper.selectPlanPDocumentList(planPDocument);
    }

    /**
     * 新增预案文档信息
     *
     * @param planPDocument 预案文档信息
     * @return 结果
     */
    @Override
    public int insertPlanPDocument(PlanPDocument planPDocument)
    {
            return planPDocumentMapper.insertPlanPDocument(planPDocument);
    }

    /**
     * 修改预案文档信息
     *
     * @param planPDocument 预案文档信息
     * @return 结果
     */
    @Override
    public int updatePlanPDocument(PlanPDocument planPDocument)
    {
        return planPDocumentMapper.updatePlanPDocument(planPDocument);
    }

    /**
     * 批量删除预案文档信息
     *
     * @param ids 需要删除的预案文档信息主键
     * @return 结果
     */
    @Override
    public int deletePlanPDocumentByIds(String[] ids)
    {
        return planPDocumentMapper.deletePlanPDocumentByIds(ids);
    }

    /**
     * 删除预案文档信息信息
     *
     * @param id 预案文档信息主键
     * @return 结果
     */
    @Override
    public int deletePlanPDocumentById(String id)
    {
        return planPDocumentMapper.deletePlanPDocumentById(id);
    }
}


